package book;

public class BookList {
    private Book[] books=new Book[10];
    private int UsedSize;

    public int getUsedSize() {
        return UsedSize;
    }

    public void setUsedSize(int usedSize) {
        UsedSize = usedSize;
    }

    public Book getBook(int pos) {
        return books[pos];
    }

    public void setBook(int pos,Book book) {
        this.books[pos] = book;
    }

    public Book[] getBooks(){
        return books;
    }
    public BookList(){
        this.books[0]=new Book("三国演义","罗贯中",25,"小说");
        this.books[1]=new Book("西游记","吴承恩",30,"小说");
        this.books[2]=new Book("红楼梦","曹雪芹",35,"小说");
        this.UsedSize=3;
    }
}
